package com.example.lifecycledemo;

import androidx.lifecycle.LifecycleService;

/**
 * @author: tuyrt7 on 2020/8/28.
 * Describe:
 */
public class MyService extends LifecycleService {

    private final ServiceObserver mObserver;

    public MyService() {
        mObserver = new ServiceObserver();
        getLifecycle().addObserver(mObserver);
    }
}
